package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.PersonnelmanagementMapper;
import com.scheduling.system.domain.Personnelmanagement;
import com.scheduling.system.service.IPersonnelmanagementService;

/**
 * 人员管理Service业务层处理
 * 
 * @author mj
 * @date 2025-05-07
 */
@Service
public class PersonnelmanagementServiceImpl implements IPersonnelmanagementService 
{
    @Autowired
    private PersonnelmanagementMapper personnelmanagementMapper;

    /**
     * 查询人员管理
     * 
     * @param id 人员管理主键
     * @return 人员管理
     */
    @Override
    public Personnelmanagement selectPersonnelmanagementById(Long id)
    {
        return personnelmanagementMapper.selectPersonnelmanagementById(id);
    }

    /**
     * 查询人员管理列表
     * 
     * @param personnelmanagement 人员管理
     * @return 人员管理
     */
    @Override
    public List<Personnelmanagement> selectPersonnelmanagementList(Personnelmanagement personnelmanagement)
    {
        return personnelmanagementMapper.selectPersonnelmanagementList(personnelmanagement);
    }

    /**
     * 新增人员管理
     * 
     * @param personnelmanagement 人员管理
     * @return 结果
     */
    @Override
    public int insertPersonnelmanagement(Personnelmanagement personnelmanagement)
    {
        return personnelmanagementMapper.insertPersonnelmanagement(personnelmanagement);
    }

    /**
     * 修改人员管理
     * 
     * @param personnelmanagement 人员管理
     * @return 结果
     */
    @Override
    public int updatePersonnelmanagement(Personnelmanagement personnelmanagement)
    {
        return personnelmanagementMapper.updatePersonnelmanagement(personnelmanagement);
    }

    /**
     * 批量删除人员管理
     * 
     * @param ids 需要删除的人员管理主键
     * @return 结果
     */
    @Override
    public int deletePersonnelmanagementByIds(Long[] ids)
    {
        return personnelmanagementMapper.deletePersonnelmanagementByIds(ids);
    }

    /**
     * 删除人员管理信息
     * 
     * @param id 人员管理主键
     * @return 结果
     */
    @Override
    public int deletePersonnelmanagementById(Long id)
    {
        return personnelmanagementMapper.deletePersonnelmanagementById(id);
    }
}
